package com.ate.adapters;
import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.ate.javamvp.R;
import com.ate.bean.GoodsBean;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * @author Ate
 * @description:
 * @date :2020/12/15 13:36
 */
public class MyRecyAdapter extends BaseQuickAdapter<GoodsBean.DataBean, BaseViewHolder> {

    public MyRecyAdapter(int layoutResId, @Nullable List<GoodsBean.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GoodsBean.DataBean item) {
        helper.setText(R.id.title_tv,item.getTitle());
        Glide.with(mContext).load(item.getPictUrl()).into((ImageView) helper.getView(R.id.good_img));
        helper.setText(R.id.price,"￥ "+item.getReservePrice());

        final int categoryId = item.getCategoryId();
        
    }
}
